<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Document</title>
</head>
<body>
    <div id="app"></div>
    <script src="./vue/index.js"></script>
    <script>
        const vm = new Vue({
            data() {
                return {
                    title: "我是第一次标题"
                }
            },
            mounted() {
                setTimeout(() => {
                    this.title = "不，我改变了"
                }, 1000)
            },
            render(h) {
                //创建虚拟DOM
                h('h3', "", this.title);
            }
        })
        vm.$mount("#app")

    </script>
</body>
</html>